home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 4 / CU Amiga Magazine's Super CD-ROM 04 (1996)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1996-11].iso / magazine / psion / utils / basecalc.lzx / basecalc.wrd (.txt) < prev   
Psion Series 3 Word Document  |  2004-10-31  |  10KB  |  173 lines

  1. PSIONWPDATAFILE
  2. ROM::EPSON.WDR
  3. BTBody text
  4.      
  5. HAHeading A
  6.      
  7. HBHeading B
  8.      
  9. BLBulleted list
  10. CTCentered text
  11. HCHeading c
  12.      
  13. NNNormal
  14.         
  15. UUUnderline
  16.      
  17. BBBold
  18.           
  19. IIItalic
  20.         
  21. EESuperscript
  22. SSSubscript
  23.      
  24. Install
  25. Copy BaseCalc.opa to the APP directory on any drive and install with <Psion>I.  
  26. Note: Use the outline feature in Word for table of contents.
  27. General Overview
  28. BaseCalc displays a 32 bit number in 4 "bases" across the screen. The "bases" are ASCII, binary, decimal and hexadecimal.  The display is set up as a "scrolling tape" so results from previous calculations show. Grey grid lines are used to section large numbers and to mark the result of a calculation. The operator is shown in the last column
  29. There is one input window that can be moved to any of the four columns by using the  left or right arrow keys. This location determines the base in which you input your numbers.
  30. The processing of numbers and operators is in Reverse Polish Notation (RPN or postfix notation) and is modeled after Hewlett Packard (HP) calculators. To add two numbers input the first number and press <Enter> (set the accumulator) input the second number and press <+> the accumulator (first number) and the second number are then added together and the result is shown (which is now in the accumulator.) A more detailed explanation of this and other internal registers are in a latter section. 
  31. A brief description of keys and functions are available in the program when you press <Help>. I would advise to read the ASCII section before seriously diving into the program since its use and behavior is not immediately obvious.
  32. Note: BaseCalc uses no files (just like Calc.)
  33. About
  34. Pressing <Psion>A display the BaseCalc version number, copyright notice and a plea to register the software. I have a family of four loving kids and wife. They all depend on me for financial support. I can really use the money, or a decent job offer. 
  35. Registration will get you a version of the program without the nag screen.
  36. After years of putting up with other peoples programmers calculators and wishing they would do more. I finally put together my own. I hope you enjoy the ideas and functionality I tried to put into this package. If you have any complaints or suggestions feel free to write or call. 
  37. Barry Childress
  38. 3415 North Second Street
  39. Harrisburg PA 17110
  40. Phone (717)234-0750  Compuserve 73510,1420
  41. In case you were wondering the program's icon is a truth table for And (&) Xor (^) and Or (|).
  42. I would like to thank Cade Roux for his ideas on the ASCII input.
  43. Features
  44. Most features are accessible through the <Menu> key or with the Psion short cut key. A brief help screen is also provided.
  45. * The amount entered is defined as a number in the input window before an operation is selected. 
  46. General Keys
  47. The left and right arrow keys select which base that you want to enter your numbers in. Note: it is possible to overflow the 32 bit register with a decimal number. 
  48.  <Esc> Clears the accumulator. See <Psion>-C to clear all registers.
  49. <Psion>L Sets the accumulator to the result before the last operation. This works like a single level undo.
  50. <Psion>X Exit BaseCalc. 
  51. Math operators
  52. Note: If no number is entered the stack is popped and the 2nd accumulator on the stack becomes the amount entered (The accumulator remains the same before the operation.)
  53. + Adds the amount entered to the accumulator. 
  54. - Subtracts the amount entered from the accumulator. 
  55. * Multiplies the amount entered by the accumulator. 
  56. / Divides the accumulator by the amount entered.
  57. # Sets the accumulator to the amount entered power.
  58. Note: If a number does overflow the accumulator is cleared and an E is displayed in the right operator column
  59. Binary operators
  60. These operators work the same way the math operators work on the registers. Except for ~ (not) which is a urinary operator and its operation is explained below.
  61. Note: The icon for BaseCalc is the truth table for the first three operations.
  62. & And the accumulator.  
  63. \  Or the accumulator (the | symbol is used in the right column .)
  64. ^  Exclusive or (xor) the accumulator.
  65. ~ Not the amount entered and push it on the stack or if there is no amount entered ~ is performed on the accumulator. 
  66. Shift bits
  67. < (or ,) Shift the accumulator left by the amount entered or by the amount on the stack. 
  68. > (or .) Shift the accumulator right by the amount entered or by the amount on the stack. 
  69. Note: Bits shifted left beyond 32 bits can result in an overflow error.
  70. Stack operations
  71. Show <Psion>S 
  72. Displays the stack and Last register. The lines are noted with the following symbols in the operator column: 
  73.     L    Last
  74.     ...    Bottom of stack (auto repeats)
  75.     3    Third item on stack
  76.     2    Second item on stack
  77.     The accumulator
  78. Last <Psion>L
  79. The sets the accumulator to the last result that was in the accumulator (undo.)
  80. Exchange <Psion>E
  81. Exchanges the accumulator with the second item on the stack. Or if there is an amount entered it gets pushed on the stack underneath the accumulator (the amount entered becomes the second item on the stack.)
  82. This helps correct the order of items before an operation such as divide or power.
  83. The operator symbol is X.
  84. Pop <Psion>P
  85. Pops a register off the stack (discards the current accumulator.)  
  86. Clear All <Psion>C
  87. Clears all registers.
  88. The operator symbol is A
  89. Examples:
  90. In going through a VGA programming example book I ran across this example of a bit pattern for a striped rainbow effect that had me a bit puzzled till I entered the numbers in BaseCalc and looked at the "sideways" in the binary column. Try entering the following numbers in Hex and see if you can see the bit pattern.
  91.     CCCC CCCC
  92.     F0F0 F0F0 
  93.     FF00 FF00
  94.     FFFF 0000
  95. To add 1+1
  96.     1<Enter>
  97. Constant numbers
  98. To use a number as a constant, push it on the stack four times so as it is popped off it repeats in the forth stack register.
  99.     1<Enter><Enter><Enter><Enter>
  100.     <    (Shift right by 1)
  101.     <     (...)
  102.         (Shows the powers of 2)
  103. ASCII
  104. One use for the ASCII column is to find the ASCII value for a key. With the input window in the ASCII column (small window on the left) press the key you want to find the value of and then press <Enter>.
  105. You also can use ASCII values in operations. To find the difference between upper and lower case letters:
  106.     a <Enter>
  107.     <Shift>A -
  108. Converting a Hex string to its value is generally a two step process where you first subtract the value of ASCII "0" and if the result is larger then nine then it is a A-F digit. The calculations would go like this:
  109.     <Shift>A <Enter>
  110. (move to Dec column and subtract what the value should be.)
  111.     10 -
  112. Or the same thing without moving  the input window.
  113.     <Shift>A <Enter>
  114.     <Control>010 -
  115. <Control> xxx inputs the ASCII character with the decimal value xxx.
  116. Now lets double check against the Hex digit F.
  117. (move back to the ASCII column.)
  118.     <Shift>F
  119.       -  (This subtracts the 7 from our last calculation.)
  120. And we get F in the Hex column.
  121. You can also use the ASCII column to get the codes for any key on the Psion by first pressing <Tab> then the key you want the code for and finally <Enter> or any other operation key. 
  122. Notes: 
  123. You will also need to press <Tab> first if you want to enter one of the operators (+-*/\~^&<>,.). 
  124. You can use <Control>A as a quick way to enter 1. <Control>A through <Control>Z are ASCII codes  1-26 but some codes are taken as regular key presses (8-Delete, 9-Tab, 13-Enter and the system swallows ^S and the next key.)
  125. Copyright
  126. BaseCalc is Copyrighted 1994 by Barry Childress  All rights reserved. The program may be distributed provided all documentation remains intact and fees for distribution do not exceed $7. 
  127. BTNNQ
  128. BTNN=
  129. BTNNW
  130. BTNN/
  131. BTNNK
  132. CTNN+
  133. BTNN_
  134. BTNNB
  135. BTNN    
  136. BTNN{
  137. BTBBa
  138. BTBB@
  139. BTBBd
  140. BTII)
  141. BTBB    
  142. BTII+
  143. BTII)
  144. BTII(
  145. BTBB+
  146. BTNNn
  147. BTNNO
  148. BTII>
  149. BTIIq
  150. BTII7
  151. BTII7
  152. BTNNH
  153. HCNNn
  154. BTNN$
  155. HCNN    
  156. HCIIP
  157. HCNN    
  158. BTNNS
  159. HCNN    
  160. HCIID
  161. BTNN    
  162. BTNN>
  163. BTNN~
  164. BTNNj
  165. BTNN<
  166. BTNN4
  167. BTNNE
  168. BTNN/
  169. BTNN!
  170. BTNN8
  171. BTNN 
  172. BTIIc
  173.